package com.zl.quickdoc.constant;

/**
 * @author zhouliang
 *
 */
public class QuickDocEnum {
    
    public enum CHANGE_TYPE {
        ADD("ADD","新增"),
        DELETE("DELETE","删除"),
        CHANGE("CHANGE","更新"),
        
        ;
        
        public String code;
        public String msg;
        
        private CHANGE_TYPE(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }
        
        public String getCode() {
            return code;
        }
        public void setCode(String code) {
            this.code = code;
        }
        public String getMsg() {
            return msg;
        }
        public void setMsg(String msg) {
            this.msg = msg;
        }
        
        public static String getMsg(String code) {
            return CHANGE_TYPE.valueOf(code).msg;
        }
    }
    public enum PARAM_TYPE {
        REQ("req","请求参数"),
        RES("res","返回参数"),
        
        ;
        
        public String code;
        public String msg;
        
        private PARAM_TYPE(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }
        
        public String getCode() {
            return code;
        }
        public void setCode(String code) {
            this.code = code;
        }
        public String getMsg() {
            return msg;
        }
        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
